﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RemindAdd.aspx.cs" Inherits="Business_Cisoft3G_OutboxManage_RemindAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>日程提醒新增</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/font.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/style_ts.css" rel="stylesheet" type="text/css" />
    <asp:Literal ID="ltScript" runat="server"></asp:Literal>

    <script type="text/javascript" src="../../../js/jquery-1.4.2.min.js"></script>

    <style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
    </style>
    <style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
        .tab
        {
            background-color: #FAFAFA;
            margin: 2px 5px;
            padding: 2px 4px;
        }
        .tab p span
        {
            background-color: #EFEFEF;
            border: 1px solid #CCCCCC;
            cursor: pointer;
            margin-right: 6px;
            padding: 2px 5px;
        }
        .tab p span.current
        {
            background-color: #FAFAFA;
            border-bottom-color: #fafafa;
        }
        .tab p
        {
            border-bottom: 1px solid #CCCCCC;
            font-weight: bold;
            padding: 0 10px 2px;
        }
        .tab li
        {
            border-bottom: 1px dotted #CCCCCC;
            padding-bottom: 2px;
            margin: 1px 0;
        }
        .tab .mhot, .tab.allhot
        {
            display: none;
        }
        .tab ul
        {
            margin-left: 1px;
        }
    </style>

    <script type="text/javascript">
        $(document).ready(function() {
            //Tab
            $(".tab span:first").addClass("current"); //为第一个SPAN添加当前效果样式
            $(".tab ul:not(:first)").hide(); //隐藏其它的UL
            $(".tab span").click(function() {
                $(".tab span").removeClass("current"); //去掉所有SPAN的样式
                $(this).addClass("current");
                $(".tab ul").hide();
                $("." + $(this).attr("id")).fadeIn('normal');
            });
            //TreeView点击
            var o = $("a[href^='GetContactsHandler']");
            o.each(function() {
                var oo = $(this);
                oo.click(function() {
                    $('#s1').empty();
                    $.ajax({
                        type: "GET",
                        cache: false,
                        url: oo.attr('href'),
                        success: function(msg) {
                            $('#s1').append(msg);
                        }
                    });
                    return false;
                });
            });

            //点击查询按钮
            $('#btnSearch').click(function() {
                $('#s1').empty();
                $.ajax({
                    type: "GET",
                    cache: false,
                    url: 'GetContactsHandler.ashx?SearchType=' + $('#ddlSearchType option:selected').val() + '&Condition=' + $.trim($('#txtCondition').val()),
                    success: function(msg) {
                        if ($.trim(msg) != '') {
                            $('#s1').append(msg);
                        }
                    }
                });
            });
            //点击确认按钮
            $('#btnConfirm').click(function() {
                var mobiles = '';
                if ($('#s2 option').length > 0) {
                    $('#s2 option').each(function() {
                        var op = $(this);
                        var txt = $('#txtRecive');
                        if (txt.text().indexOf(op.val()) == -1 && op.val() != '') {
                            if ($.trim(txt.text()).length == 0) {
                                txt.append(op.val() + ',');
                            }
                            else {
                                if ($.trim(txt.text()).indexOf(',') == $.trim(txt.text()).length - 1) {
                                    txt.append(op.val() + ',');
                                }
                                else {
                                    txt.append(',' + op.val() + ',');
                                }
                            }
                        }
                        else { }
                    });
                    //$('#txtRecive').text($('#txtRecive').text().substr(0, $('#txtRecive').text().length - 1));
                    $('#txtRecive').text($.trim($('#txtRecive').val()).replace(/,,/g, ","));
                    $('#btnCloseAll').click();
                }
            });

            //左边双击
            $("#s1").dblclick(function() {
                var alloptions = $("#s1 option");
                var so = $("#s1 option:selected");

                //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                if ($("#s2").val() == null) {
                    $("#s2").append(so);
                }
                if ($("#s2").text() != null) {
                    if ($("#s2").text().indexOf(so.val()) == -1) {
                        $("#s2").append(so);
                    }
                    if ($("#s2").text().indexOf(so.val()) > -1) {
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //右边双击
            $("#s2").dblclick(function() {
                var alloptions = $("#s2 option");
                var so = $("#s2 option:selected");
                //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                if ($("#s1").text() == null) {
                    $("#s1").append(so);
                }
                if ($("#s1").text() != null) {
                    if ($("#s1").text().indexOf(so.val()) == -1) {
                        $("#s1").append(so);
                    }
                    else {
                        so.remove();
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //选中右移
            $("#add").click(function() {
                var alloptions = $("#s1 option");
                if ($("#s1 option").val() != null) {
                    var so = $("#s1 option:selected");
                    if (so.length > 0) {
                        //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                        if ($('#s2').text() == null) {
                            $("#s2").append(so);
                        }
                        if ($('#s2').text() != null) {
                            if ($('#s2').text().indexOf(so.val()) == -1) {
                                $("#s2").append(so);
                            }
                            else {
                                so.remove();
                            }
                        }
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //选中左移
            $("#remove").click(function() {
                var alloptions = $("#s2 option");
                if (alloptions.length > 0) {
                    var so = $("#s2 option:selected");
                    if (so.length > 0) {
                        //so.get(so.length - 1).index == alloptions.length - 1 ? so.prev().attr("selected", true) : so.next().attr("selected", true);
                        if ($('#s1 option').length == 0) {
                            $("#s1").append(so);
                        }
                        else {
                            if ($('#s1').text().indexOf(so.val()) == -1) {
                                $("#s1").append(so);
                            }
                            else {
                                so.remove();
                            }
                        }
                    }
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
            //全部右移
            $("#addall").click(function() {
                if ($("#s1").text() != null) {
                    //$("#s1").eq(0).selectedIndex = 0;
                    if ($("#s2 option").length == 0) {
                        //alert($("#s2").text());
                        $("#s2").append($("#s1 option"));
                    }
                    if ($("#s2").text() != null) {
                        var flag = false;
                        $("#s1 option").each(function() {
                            if ($("#s2").text().indexOf($(this).val()) == -1) {
                                $("#s2").append($(this));
                            }
                            else {
                                $(this).remove();
                            }
                        });
                    }
                    $("#s1").val(null);
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
                $("#s1").empty();
                $("#s1").html('');
            });
            //全部左移
            $("#removeall").click(function() {
                if ($("#s2").text() != null) {
                    if ($("#s1").text() == null) {
                        $("#s1").append($("#s2 option"));
                    }
                    if ($("#s1").text() != null) {
                        var flag = false;
                        $("#s2 option").each(function() {
                            var s2o = $(this);
                            if ($("#s1").text().indexOf(s2o.val()) == -1) {
                                $("#s1").append(s2o);
                            }
                            else {
                                s2o.remove();
                            }
                        });
                    }
                    $("#s2").empty();
                }
                var strings = '';
                $('#s2 option').each(function() {
                    strings = strings + $(this).val() + ',';
                });

                $('#hih_right').attr('value', strings);
            });
        });

    </script>

    <script type="text/javascript">
        function BindTime() {
            var selectHour = document.getElementById('selectHour');
            for (var i = 0; i < 24; i++) {
                var varItem = new Option(i, i);
                selectHour.options.add(varItem);
            }

            var selectMinite = document.getElementById('selectMinite');
            for (var i = 0; i < 59; i++) {
                var varItem = new Option(i, i);
                selectMinite.options.add(varItem);
            }
        }
        function now() {
            var txtTime = document.getElementById('txtTime');
            txtTime.value = '';
            txtTime.disabled = true;
            document.getElementById('selectHour').disabled = true;
            document.getElementById('selectMinite').disabled = true;
        }
        function time() {
            document.getElementById('txtTime').disabled = false;
            document.getElementById('selectHour').disabled = false;
            document.getElementById('selectMinite').disabled = false;
        }

        String.prototype.len = function() {
            return this.replace(/[^\x00-\xff]/g, "**").length;
        }
        function MsgContentOnChanging() {
            var msgcontent = document.getElementById('txtSMsContent');
            var span_split = document.getElementById('spanSmsContentNotic');

            var msgcount = msgcontent.value.len();
            if (msgcount > 0) {
                span_split.innerHTML = "当前输入了" + msgcount + "个字符";
                if (msgcount > 0 && msgcount < 131) {
                    span_split.innerHTML = "当前输入了" + msgcount + "个字符。";

                }
                else {
                    if (msgcount > 130) {
                        span_split.innerHTML = "<span style='color:red; font-weight:bold'>内容过长，请注意</span>";
                    }
                }
            }
        }

        function check(obj) {
            var re = /[^\x00-\xff]/g;
            return re.test(obj);
        }
        //gwh 20100221 追加内容判断

        function select_onblurAll() {
            var flag = false;
            var text1 = document.getElementById('txtRecive');
            var spanforerror = document.getElementById('spanReciveNotic');
            var text1content = document.getElementById('txtSMsContent');
            var spanforerrorcontent = document.getElementById('spanSmsContentNotic');


            if (tb_Mobile_IsNull(text1)) {
                spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>请选择或填写至少一个手机号码</span>";
                return flag;
            } else { spanforerror.innerHTML = ''; }
            if (tb_Mobile_IsNull(text1content)) {
                spanforerrorcontent.innerHTML = "<span style='color:red; font-weight:bold'>请填写短信内容</span>";
                return flag;
            } else { spanforerrorcontent.innerHTML = ''; }
            if (text1content.value.len() > 1000) {
                spanforerrorcontent.innerHTML = "<span style='color:red; font-weight:bold'>内容过长，请注意</span>";
                return flag;
            } else { spanforerrorcontent.innerHTML = ''; }
            //            if (text1.value.length > 11) {
            //                if (text1.value.indexOf(',') >= 0) {
            //                    spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>号码中不能有逗号！</span>";
            //                    return flag;
            //                }
            //                else {
            //                    spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>一次只能填写一个号码</span>";
            //                    return flag;
            //                }
            //            } else { spanforerror.innerHTML = ''; }
            if (text1.value.length > 0) {
                var arraryText1 = text1.value.trim().split(',');
                for (var i = 0; i < arraryText1.length; i++) {
                    if (arraryText1[i].length > 0) {
                        if (arraryText1[i].length != 11) {
                            spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>号码\"" + arraryText1[i].substring(0, 11) + "\"不是有效的手机号码！</span>";
                            flag = false;
                            break;
                        }
                        if (!checkMobile(arraryText1[i])) {
                            flag = false;
                            spanforerror.innerHTML = "<span style='color:red; font-weight:bold'>号码\"" + arraryText1[i].substring(0, 11) + "\"不是有效的手机号码！</span>";
                            break;
                        }
                        spanforerror.innerHTML = "";
                        flag = true;
                        continue;
                    }
                }
            }


            return flag;
        }

        function CheckClientValidate() {
            Page_ClientValidate();
            if (Page_IsValid) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" runat="server" id="hih_right" />
    <asp:ScriptManager ID="Scriptmanager1" runat="server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true">
    </asp:ScriptManager>
    <div class="position_list">
        <div class="position_left_list">
        </div>
        <div class="position_con_list">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="30">
                        <img src="../../../Images/3G/icon3_1.gif" width="14" height="14" alt="" />
                    </td>
                    <td class="cyan12">
                        日程提醒新增：为您提供日程提醒新增功能。
                    </td>
                </tr>
            </table>
        </div>
        <div class="position_right_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域开始<![endif]-->
    <div class="search_list">
        <div class="search_top_list">
            <div class="search_topleft_list">
            </div>
            <!--  查询     -->
            <div class="search_topbg_list">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30" align="left" valign="middle" style="padding-top: 4px;">
                            <img src="../../../Images/3G/icon_logo.gif" width="22" height="22" />
                        </td>
                        <td width="100" class="cyan13_bold" style="padding-top: 5px;">
                            系统温馨提示栏
                        </td>
                        <td style="padding-top: 5px;">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="search_topright_list">
            </div>
        </div>
        <!--   列表     -->
        <div class="index_search_con_list">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white12_normal"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr class="form_lineheight">
                                <td align="right" valign="middle" width="120px">
                                    <%--<span style="font-weight: bold; color: White;">提醒接收人：</span>--%>
                                    <span style="color: Red;">*</span>
                                    <asp:Button ID="btnCallContacts" runat="server" ToolTip="选择联系人" CausesValidation="false"
                                        OnClick="btnCallContacts_Click" />
                                </td>
                                <td align="left" valign="middle" style="width: 57%; max-width: 57%; padding-left: 10px">
                                    <%--<asp:TextBox ID="txtRecive" runat="server" TextMode="MultiLine" Style="width: 450px;
                                        font-size: 12px; font-weight: normal; color: #000000; height: 120px; border: 0px;
                                        overflow: hidden;" onfocus="this.style.border = '2px solid #52ff00'" onblur="this.style.border = '1px solid #ffffff'"></asp:TextBox>--%>
                                    <%--<asp:TextBox ID="txtRecive" runat="server" TextMode="MultiLine" 
                                        Style="height: 90px; font-size: 12px; font-weight: normal; 
                                        color: #000000; border: 0px; max-width:100%;overflow: hidden;" Width="450px"></asp:TextBox>--%>
                                    <asp:TextBox ID="txtRecive" runat="server" TextMode="MultiLine" Style="width: 450px;
                                        font-size: 12px; font-weight: normal; color: #000000; height: 100px; border: 0px;
                                        overflow: hidden;"></asp:TextBox>
                                </td>
                                <td align="left" valign="middle" style="max-width: 200px;">
                                    <div style="padding: 15px; line-height: 18px;">
                                        <span class="cyan12" id="spanRecive">请输入接收人号码</span>
                                        <br />
                                        <span style="color: Red; font-weight: bold;" id="spanReciveNotic"></span>
                                    </div>
                                    <%--<br />
                                    <br />
                                    &nbsp;&nbsp;<span style="color: Red; font-weight: bold;" id="spanReciveNotic"></span>--%>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <br />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white12_normal"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <%--<tr class="form_lineheight">--%>
                            <tr>
                                <td align="right" valign="middle" width="120px">
                                    <span style="color: Red;">*</span>提醒短信内容：
                                </td>
                                <td align="left" valign="middle" width="57%" style="max-width: 57%; padding-left: 10px">
                                    <asp:TextBox ID="txtSMsContent" runat="server" TextMode="MultiLine" Style="width: 450px;
                                        font-size: 12px; font-weight: normal; color: #000000; height: 100px; border: 0px;
                                        overflow: hidden;"></asp:TextBox>
                                </td>
                                <td align="left" valign="middle">
                                    <div style="padding: 15px; line-height: 18px;">
                                        <span class="cyan12" id="spanSmsContent">请输入短信内容，短信内容不能超过65个汉字或130个字符。</span>
                                        <br />
                                        <br />
                                        &nbsp;&nbsp;<span class="cyan13_bold" id="spanSmsContentNotic"></span>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <br />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white12_normal"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr class="form_lineheight">
                                <td align="right" valign="middle" width="120">
                                    <span style="color: Red;">*</span><span style="color: White;">提醒参数：</span>
                                </td>
                                <td align="left" valign="middle" colspan="2" style="padding-left: 10px;">
                                    提醒时间：<%--<asp:TextBox ID="txtTime" ReadOnly="true" runat="server" Style="border: 1px solid #ffffff;
                                        width: 80px;" onfocus="this.style.border = '2px solid #f1fe00'" onblur="this.style.border = '1px solid #ffffff';if(document.getElementById('rbtnNow').checked){document.getElementById('spanTimeNotic').innerHTML = '';}"></asp:TextBox>--%>
                                    <asp:TextBox ID="txtTime" runat="server" Style="border: 1px solid #ffffff; width: 80px;"
                                        onfocus="this.style.border = '2px solid #f1fe00'" onblur="this.style.border = '1px solid #ffffff';if(1==1){document.getElementById('spanTimeNotic').innerHTML = '';}"></asp:TextBox>
                                    <img src="../../../Images/Calendar_scheduleHS.png" alt="点击选择提醒日期" id="imgStartDate"
                                        runat="server" onclick="WdatePicker({el:'txtTime',minDate:'%y-%M-{%d}'})" />
                                    <%--<select name="selectHour" id="selectHour" runat="server" style="border: 1px solid #ffffff" onserverchange="hourchange" AutoPostBack="true">
                                    </select>--%>
                                    <asp:DropDownList runat="server" CausesValidation="false" name="selectHour" ID="selectHour"
                                        AutoPostBack="true" OnSelectedIndexChanged="selectHour_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <span id="spanHour">时</span>
                                    <asp:DropDownList runat="server" CausesValidation="false" name="selectMinite" ID="selectMinite"
                                        AutoPostBack="true" OnSelectedIndexChanged="selectMinite_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <%--<select name="selectMinite" id="selectMinite" runat="server" style="border: 1px solid #ffffff" onserverchange="hourchange" AutoPostBack="true">
                                    </select>--%>
                                    <span id="spanMinite">分</span>
                                    <br />
                                    <asp:TextBox ID="txtTimeNow" runat="server" Style="display: none"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="提醒时间不能为空"
                                        ControlToValidate="txtTime"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="cv1" runat="server" ErrorMessage="提醒时间必须大于当前时间！" ControlToCompare="txtTimeNow"
                                        ControlToValidate="txtTime" Type="Date" Display="Dynamic"></asp:CompareValidator>
                                    <span style="color: Red; font-weight: bold" id="spanTimeNotic"></span>
                                    <br />
                                    重复频率：&nbsp;<asp:DropDownList runat="server" CausesValidation="false" ID="ddlRateType"
                                        OnSelectedIndexChanged="ddlRateType_SelectedIndexChanged" AutoPostBack="true">
                                        <asp:ListItem Value="0" Text="不重复" Selected="True"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="每天"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="每周"></asp:ListItem>
                                        <asp:ListItem Value="3" Text="每月"></asp:ListItem>
                                        <asp:ListItem Value="4" Text="每年"></asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Panel runat="server" ID="pnlRateType">
                                        <br />
                                        <asp:Label ID="lblRateType" runat="server"></asp:Label>
                                    </asp:Panel>
                                    <asp:Panel runat="server" ID="pnlStandardWeeks">
                                        <asp:CheckBoxList ID="cblStandardWeeks" runat="server" RepeatDirection="Horizontal"
                                            OnSelectedIndexChanged="cblStandardWeeks_SelectedIndexChanged" AutoPostBack="true"
                                            CausesValidation="false">
                                            <asp:ListItem Value="7" Text="星期日"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="星期一"></asp:ListItem>
                                            <asp:ListItem Value="2" Text="星期二"></asp:ListItem>
                                            <asp:ListItem Value="3" Text="星期三"></asp:ListItem>
                                            <asp:ListItem Value="4" Text="星期四"></asp:ListItem>
                                            <asp:ListItem Value="5" Text="星期五"></asp:ListItem>
                                            <asp:ListItem Value="6" Text="星期六"></asp:ListItem>
                                        </asp:CheckBoxList>
                                    </asp:Panel>
                                </td>
                                <%--<td align="left" valign="middle" style="max-width: 200px;">
                                    <span class="cyan13_bold" id="span1">* 请输入接收人号码，多个号码请用英文状态下的逗号分隔。</span>
                                    <br />
                                    <br />
                                    &nbsp;&nbsp;<span style="color: Red; font-weight: bold;" id="span2"></span>
                                </td>--%>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <br />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white12_normal"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr class="form_lineheight">
                                <td align="right" valign="middle" style="width: 120px;">
                                    <span style="color: Red;">*</span>时间范围：
                                </td>
                                <td align="left" valign="middle" style="padding-left: 10px;">
                                    开始时间：&nbsp;<asp:Label runat="server" ID="lblStartime"></asp:Label><br />
                                    结束时间：<asp:RadioButton ID="rbtnEndType0" runat="server" Text="从不" GroupName="rREndType"
                                        Checked="true" OnCheckedChanged="rbtnEndType0_CheckedChanged" AutoPostBack="true" />
                                    <asp:RadioButton ID="rbtnEndType1" runat="server" Text="之前" GroupName="rREndType"
                                        OnCheckedChanged="rbtnEndType1_CheckedChanged" AutoPostBack="true" />
                                    <asp:Panel runat="server" ID="pnlEndTime">
                                        <asp:TextBox ID="txtEndTime" runat="server" Style="border: 1px solid #ffffff; width: 80px;"
                                            onfocus="this.style.border = '2px solid #f1fe00'" onblur="this.style.border = '1px solid #ffffff';if(1==1){document.getElementById('spanTimeNotic').innerHTML = '';}"></asp:TextBox>
                                        <img src="../../../Images/Calendar_scheduleHS.png" alt="点击选择提醒结束日期" id="img1" runat="server"
                                            onclick="WdatePicker({el:'txtEndTime',minDate:'%y-%M-{%d}'})" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="结束时间不能为空"
                                            ControlToValidate="txtEndTime"></asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="结束时间必须大于当前时间！"
                                            ControlToCompare="txtTimeNow" ControlToValidate="txtEndTime" Type="Date" Display="Dynamic"></asp:CompareValidator>
                                    </asp:Panel>
                                    <%--<asp:RadioButton ID="rbtnNow" runat="server" Text="立即发送" GroupName="rGroup" onclick="now();" />
                                    <asp:RadioButton ID="rbtnTime" runat="server" Text="定时发送" GroupName="rGroup" Checked="true" 
                                        onclick="time();" />--%>
                                </td>
                                <td align="left" valign="middle">
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <br />
            <table width="808px" border="0" cellspacing="0" cellpadding="0" class="white12_normal"
                style="padding-left: 10px;">
                <tr>
                    <td align="left" valign="middle">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="right" valign="middle" style="width: 120px;">
                                </td>
                                <td align="left" valign="middle" style="padding-left: 10px;" colspan="2">
                                    <%--<input id="fs" type="submit" name="Submit" value="" />--%>
                                    <br />
                                    <%--<asp:Button ID="btnSend" runat="server" Text="" OnClick="btnSend_Click" />--%>
                                    <asp:Button ID="btnAdd" runat="server" ToolTip="新增" Text="" OnClick="btnAdd_Click"
                                        CausesValidation="false" OnClientClick="if(CheckClientValidate()) {if(select_onblurAll()){return true;}else{return false;}}" />
                                    <%--<a href="RemindManage.aspx" title="返回">--%>
                                    <%--<img style="border: 0px; padding-top: 0px; vertical-align: bottom" alt="" src="../../../Images/3G/button_fanhui.gif"></span></a>--%>
                                    <asp:Button ID="btnBack" runat="server" ToolTip="返回" Text="" OnClick="btnBack_Click"
                                        CausesValidation="false" Visible="true" />
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="search_bottom_list">
        <div class="search_bottomleft_list">
        </div>
        <div class="search_bottombg_list">
        </div>
        <div class="search_bottomright_list">
        </div>
    </div>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender3" runat="server" TargetControlID="LinkButton1"
        PopupControlID="appease_Panel1" BackgroundCssClass="modalBackground" OnOkScript="onOk()"
        DropShadow="false" PopupDragHandleControlID="appease_Panel2" CancelControlID="btnCloseAll">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="appease_Panel1" runat="server" Style="display: none; width: 650px;
        vertical-align: middle;">
        <div class="attention">
            <asp:Panel ID="appease_Panel2" runat="server" Style="vertical-align: middle;">
                <div class="attention_top">
                    <div class="attention_topleft">
                    </div>
                    <div class="attention_topmid">
                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="middle" class="title">
                                    通讯录
                                </td>
                                <td align="right" valign="middle" width="30">
                                    <asp:Button ID="btnCloseAll" runat="server" Text="" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="attention_topright">
                    </div>
                </div>
            </asp:Panel>
            <div class="attention_con">
                <asp:Panel ID="appease_Panel3" runat="server">
                    <table border="1" cellpadding="0" cellspacing="0" bordercolor="#0e62a7" style="width: 100%;">
                        <tr>
                            <td valign="top">
                                <%-- <table>
                                    <tr>
                                        <td valign="top">--%>
                                <div class="tab" style="text-align: left">
                                    <p>
                                        <span id="tab1">组织结构</span><span id="tab2">自定义组</span>
                                    </p>
                                    <br />
                                    <ul class="tab1">
                                        <asp:TreeView ID="tvContactsGroup" runat="server" ImageSet="Arrows" ShowLines="True">
                                            <ParentNodeStyle Font-Bold="False" />
                                            <HoverNodeStyle Font-Underline="False" ForeColor="#5555DD" />
                                            <SelectedNodeStyle Font-Underline="False" HorizontalPadding="0px" VerticalPadding="0px"
                                                ForeColor="#5555DD" Font-Bold="true" />
                                            <RootNodeStyle ForeColor="Blue" />
                                            <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px"
                                                NodeSpacing="0px" VerticalPadding="0px" />
                                        </asp:TreeView>
                                    </ul>
                                    <ul class="tab2">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <asp:Label ID="lblDefineGroup" runat="server" Text=""></asp:Label>
                                        </table>
                                    </ul>
                                </div>
                                <%--</td>
                                    </tr>
                                </table>--%>
                            </td>
                            <td valign="top">
                                <!--查询框-->
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <span>查询选项：</span>
                                            <asp:DropDownList ID="ddlSearchType" runat="server">
                                                <asp:ListItem Selected="True" Value="CT_Name">姓名</asp:ListItem>
                                                <asp:ListItem Value="CT_Mobile">手机号码</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:TextBox ID="txtCondition" runat="server" Style="border: 1px solid #000000; width: 120px"
                                                MaxLength="11"></asp:TextBox>
                                            <input type="button" id="btnSearch" runat="server" title="查询" style="width: 61px;
                                                height: 21px; border: 0px; background: url(../../../Images/3G/button_search.gif) no-repeat;" />
                                            <%--<asp:Button ID="btnConfirm" runat="server" ToolTip="确认选择" OnClick="btnClose_Click" CausesValidation="false"/>--%>
                                            <input type="button" id="btnConfirm" />
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <div id="divData">
                                                <table>
                                                    <tr>
                                                        <td style="vertical-align: top">
                                                            <span>联系人</span>
                                                            <br />
                                                            <asp:ListBox ID="s1" runat="server" Height="250px" Width="175px" SelectionMode="Multiple">
                                                            </asp:ListBox>
                                                        </td>
                                                        <td style="vertical-align: middle">
                                                            <input type="button" id="addall" runat="server" title="全部右移" />
                                                            <br />
                                                            <input type="Button" id="add" runat="server" title="右移" />
                                                            <br />
                                                            <input type="Button" id="remove" runat="server" title="左移" />
                                                            <br />
                                                            <input type="Button" id="removeall" runat="server" title="全部左移" />
                                                        </td>
                                                        <td>
                                                            <span>已选择联系人</span>
                                                            <br />
                                                            <asp:ListBox ID="s2" runat="server" Height="250px" Width="175px" SelectionMode="Multiple">
                                                            </asp:ListBox>
                                                            <select id="s3" style="display: none" />
                                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:Panel>
    <asp:LinkButton ID="LinkButton1" runat="server" Visible="true" OnClick="LinkButton1_Click"></asp:LinkButton>
    <!--提示框-->
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton2"
        PopupControlID="Panel1" BackgroundCssClass="modalBackground" OnOkScript="onOk()"
        DropShadow="false" PopupDragHandleControlID="Panel2" CancelControlID="btnCloseAll2">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="Panel1" runat="server" Style="display: none; width: 26%; vertical-align: middle;">
        <div class="attention_delete">
            <asp:Panel ID="Panel2" runat="server" Style="vertical-align: middle;">
                <div class="attention_top">
                    <div class="attention_topleft">
                    </div>
                    <div class="attention_topmid_delete">
                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="middle" class="title">
                                    提示信息
                                </td>
                                <td align="right" valign="middle" width="30">
                                    <asp:Button ID="btnCloseAll2" runat="server" Text="" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="attention_topright">
                    </div>
                </div>
            </asp:Panel>
            <div class="attention_con">
                <asp:Panel ID="Panel3" runat="server">
                    <table border="1" runat="server" id="table2" cellpadding="5" cellspacing="0" bordercolor="#0e62a7"
                        style="width: 100%; text-align: center; border-collapse: collapse;">
                        <tr>
                            <td style="text-align: Center">
                                <asp:Label ID="lblTS" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="navi_link">
                                <asp:Button ID="btnBack_ts" runat="server" ToolTip="返回" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:Panel>
    <asp:LinkButton ID="LinkButton2" runat="server" Visible="true"></asp:LinkButton>
    </form>
</body>
</html>
